<div id="wrapper">	
  <form method="post" id="langform">    
    <input type="hidden" name="namelang" id="lang_id" value="" />    
    <input type="hidden" name="returnpage" id="lang_id" value="?{$smarty.server.QUERY_STRING}" />	
    <div align="right">
	{if $ACTIVELANG eq '1'}
	{foreach name=cat from=$LANGUAGE item=item}
    	<a href="#" onclick="javascript:document.getElementById('lang_id').value='{$item->key_lang}';document.getElementById('langform').submit()"><img src="{$item->img}"/></a>
    {/foreach}
    {else}
    	&nbsp;
    {/if}
    </div>    
  </form>    
  <div id="left_top">
  </div>      
  <div id="right_top">        
    <div id="banner_left">
    </div>        
    <div id="banner_right">
	{if $MENUTOP != null}                 
      <div class="menutop">{$MENUTOP}</div>
	{/if}             
      <div id="fr-search">            	 
        <form action="?page=product_search" method="post">                    
          <div class="left">                    
            <input name="productsearch" class="search_input" type="text" id="txtsearch" value="Search" size="18" maxlength="255" onfocus="this.value=''" onblur="if(this.value=='') this.value= '{TranslateTag}LABEL_SEARCH{/TranslateTag}'"/>                    
          </div>                	
          <input type="submit" class="right" value="" />            	
        </form>              
      </div>   			        	
    </div>        
    <div id="checkbar">                
      <div id="checkbar_left">                	
        <div class="welcome">{$WELCOME}</div>                
      </div>                
      <div id="checkbar_right">                    
        <div class="checklink">
		{if $smarty.session.cust_id != NULL}                         	
          <a href="?page=customer_logout">{TranslateTag}LABEL_LOGOUT{/TranslateTag}</a>||                        		
          <a href="?page=customer_myaccount">{TranslateTag}LABEL_MY_ACCOUNT{/TranslateTag}</a>
		{else}                          	
          <a href="?page=customer_register">{TranslateTag}LABEL_REGISTER{/TranslateTag}</a>
		{/if}||                         
          <a href="?page=checkout_basket">{TranslateTag}LABEL_SHOPPING_BASKET{/TranslateTag}</a>||                         
          <a href="?page=checkout_shipping">{TranslateTag}LABEL_CHECKOUT{/TranslateTag}</a>                    
        </div>                
      </div>   		
    </div>    
  </div>
</div>